package com.cskaoyan.order.controller;

import com.cskaoyan.order.service.OrderPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author：HeXiangZhi
 * @data: 2022/12/7 16:25
 * @Description: TODO
 */
@RestController
public class PayOrderController {

    @Autowired
    OrderPayService orderPayService;

    @PutMapping("/rpc/pay/success")
    public void payOrderSuccess(String orderId){
        orderPayService.payOrderSuccess(orderId);
    }
}
